<div class="spaced_box">
<% form_for @username, :url => { :action => "update_password", :id => @username.id } do |f| %>
  <%= f.error_messages %>
  <%= f.hidden_field :id %>

  <div class="spaced_box">
    Change Password for:
  </div>
  <div class="spaced_box">
    <span class="label">User:</span> <%= @user.fullname %>
  </div>
  <div class="spaced_box">
    <span class="label">Username:</span> <%= @username.username %>
  </div>
  <div class="spaced_box">
    <div class="label">New Password:</div>
    <%= f.password_field :password %>
  </div>
  <div class="spaced_box">
    <div class="label">Confirm New Password:</div>
    <%= f.password_field :password_confirmation %>
  </div>
  <%= f.submit "Update" %>  
<% end %>
</div>

<div class="spaced_box">
  <%= link_to "Back", user_path(@username.user) %>
</div>